package com.example.producer.config;

import com.example.producer.comm.RabbitConstant;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @description work工作模式
 * @author shiguorang
 * @date 2023/6/29 11:24:54
 * @version 1.0
 */
@Component
public class RabbitWorkProvider {
    @Bean
    public Queue workQueue() {
        return new Queue(RabbitConstant.WORK_QUEUE_NAME);
    }
}
